export default {
  title: {
    text: '',
    top: '40%',
    left: 'center',
    textStyle: {
      fontSize: 24,
      color: '#ffffff'
    },
    subtext: '',
    subtextStyle: {
      color: 'rgba(223, 245, 252, 1)'
    }
  },
  tooltip: {
    trigger: 'item',
    formatter: '{b}：{c}MWh'
  },

  series: [
    {
      name: '容量占比',
      type: 'pie',
      radius: ['60%', '80%'],
      avoidLabelOverlap: false,
      padAngle: 5,

      label: {
        show: false,
        position: 'center'
      },

      emphasis: {
        label: {
          show: true,
          fontSize: '18',
          fontWeight: 'normal',
          color: "#fff",
          formatter: (e) => {
            return `{a|${e.percent}%}\n{b|${e.name}占比}`
          },
          rich: {
            a: {
              fontSize: 20,
              color: '#fff'
            },
            b: {
              fontSize: 10,
              color: '#fff'
            }
          }
        }
      },
      data: []
    }
  ]
}